package com.church.action;

import java.util.List;
import java.util.Map;

import com.church.base.common.util.ExtData;
import com.church.db.Announcement;
import com.church.services.AnnouncementServices;
import com.opensymphony.xwork2.ActionContext;

public class GetAnnouncementList {
	private AnnouncementServices announcementServices;
	private ExtData<Announcement> announcementList;
	
	private String group;
	public AnnouncementServices getAnnouncementServices() {
		return announcementServices;
	}
	public void setAnnouncementServices(AnnouncementServices announcementServices) {
		this.announcementServices = announcementServices;
	}
	public ExtData<Announcement> getAnnouncementList() {
		return announcementList;
	}
	public void setAnnouncementList(ExtData<Announcement> announcementList) {
		this.announcementList = announcementList;
	}
	public String getGroup() {
		return group;
	}
	public void setGroup(String group) {
		this.group = group;
	}
	public String execute() {
		announcementList = new ExtData<Announcement>();
		announcementList.setRoot(announcementServices.getList());
		announcementList.setSuccess(true);
		return "success";
	}
}
